import request from './request'

export function login(data) {
    return request({
        url: '/tour/admin/login',
        method: 'POST',
        data,
    })
}

export function getUserInfo() {
    return request({
        url: '/tour/admin/getUserInfo',
        method: 'GET',
    })
}

// Dashboard相关接口
export function getDashboardStats() {
    return request({
        url: '/tour/admin/dashboard/stats',
        method: 'GET',
    })
}

export function getRecentOrders() {
    return request({
        url: '/tour/admin/dashboard/recent-orders',
        method: 'GET',
    })
}

export function getHotProducts() {
    return request({
        url: '/tour/admin/dashboard/hot-products',
        method: 'GET',
    })
}

export function getInventoryAlerts() {
    return request({
        url: '/tour/admin/dashboard/inventory-alerts',
        method: 'GET',
    })
}

export function getRevenueChart() {
    return request({
        url: '/tour/admin/dashboard/revenue-chart',
        method: 'GET',
    })
}

